home *** CD-ROM | disk | FTP | other *** search
/ Joystick Magazine 2000 November / cd joystick no120 novembre 2000 cd 1.iso / data / demos / gunlok / data1.cab / Program_Executable_Files / scripts / drone.gsh < prev    next >
Text File  |  2000-08-22  |  3KB  |  124 lines

  1. // defines Drone
  2. ////////////////////////////////////////////////////////////////////////////////////
  3.  
  4. // start wrapper - prevent multiple inclusions or recursive inclusions
  5.  
  6. //(this currently causes 'unrecognized preprocessor directive' warnings, until implemented)
  7. #ifndef INCLUDED_DRONE_GSH
  8. #define INCLUDED_DRONE_GSH
  9.  
  10. ////////////////////////////////////////////////////////////////////////////////////
  11.  
  12. #include "defaults.gsh"
  13. #include "lasers.gsh"
  14. #include "drone_frag.gsh"
  15.  
  16. hierarchy Hcy_Drone
  17. {
  18.     file "units\drone.RIF"
  19.     name "drone"
  20.     hotspot "dum flash"
  21.     alternate hotspot "dum flash L"
  22.  
  23. }
  24. hierarchy Hcy_Drone_shadow
  25. {
  26.     file "units\drone_shadow.RIF"
  27.     name "Drone_shadow"
  28. }
  29.  
  30. character Chr_Drone : Chr_DefaultBaddie
  31. {
  32.     turning speed   0.1    // this is in revolutions per second
  33.     walking speed   1.0    // this is in animation cycles per second
  34.     weapon          plasma pistol
  35.     strength        25    // initial strength points
  36.     aim             1    // how many degrees off target he can be at most
  37.     sight angle    20    // in degrees
  38.     sight range     15    // in metres
  39.     hearing range    12    // in metres
  40.     aggression    0.9    // from 0 to 1
  41.     gun yaw angle    0    // in degrees
  42.     description        drone description
  43.     shadow hierarchy        Hcy_Drone_shadow
  44. }
  45.  
  46. role Rol_Drone : Rol_DefaultRobot
  47. {
  48.     shape            Hcy_Drone
  49.     
  50.     character        Chr_Drone
  51.         
  52.     identifier        "drone"
  53.  
  54.     armour    1
  55.  
  56.     destructibility    Frg_Drone
  57.  
  58.     ai                bot
  59. }
  60.  
  61. character Chr_TrainingDrone : Chr_DefaultBaddie
  62. {
  63.     turning speed   0.1    // this is in revolutions per second
  64.     walking speed   0    // this is in animation cycles per second
  65.     strength        25    // initial strength points
  66.     aim             1    // how many degrees off target he can be at most
  67.     sight angle    20    // in degrees
  68.     sight range     15    // in metres
  69.     hearing range    12    // in metres
  70.     aggression    0.9    // from 0 to 1
  71.     gun yaw angle    0    // in degrees
  72.     description        drone description
  73.     shadow hierarchy        Hcy_Drone_shadow
  74. }
  75.  
  76. role Rol_TrainingDrone : Rol_DefaultRobot
  77. {
  78.     shape            Hcy_Drone
  79.     
  80.     character        Chr_TrainingDrone
  81.         
  82.     identifier        "trainingdrone"
  83.  
  84.     armour    1
  85.  
  86.     destructibility    Frg_Drone
  87.  
  88.     ai                bot
  89. }
  90.  
  91. character Chr_TrainingDroneb : Chr_DefaultBaddie
  92. {
  93.     turning speed   0.1    // this is in revolutions per second
  94.     walking speed   0    // this is in animation cycles per second
  95.     strength        100    // initial strength points
  96.     aim             1    // how many degrees off target he can be at most
  97.     sight angle    20    // in degrees
  98.     sight range     15    // in metres
  99.     hearing range    12    // in metres
  100.     aggression    0.9    // from 0 to 1
  101.     gun yaw angle    0    // in degrees
  102.     description        drone description
  103.     shadow hierarchy        Hcy_Drone_shadow
  104. }
  105.  
  106. role Rol_TrainingDroneb : Rol_DefaultRobot
  107. {
  108.     shape            Hcy_Drone
  109.     
  110.     character        Chr_TrainingDroneb
  111.         
  112.     identifier        "trainingdroneb"
  113.  
  114.     armour    1
  115.  
  116.     destructibility    Frg_Drone
  117.  
  118.     ai                bot
  119. }
  120. ////////////////////////////////////////////////////////////////////////////////////
  121.  
  122. // end wrapper - for preventing multiple or recursive inclusions
  123. #endif // !INCLUDED_DRONE_GSH
  124.